package com.lky.marshall.mallcart.service;

import com.lky.marshall.mallcart.vo.CartItemVo;
import com.lky.marshall.mallcart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/6/1 10:18
 */
public interface CartService {
    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCartItem(Long skuId);

    CartVo getCart() throws ExecutionException, InterruptedException;

    void clearCartKey(String cartKey);

    List<CartItemVo> getCurrentUserCartItems();

}
